<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WLog: WLogInterface.cpp文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- 制作者 Doxygen 1.5.8 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>名字空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>WLogInterface.cpp文件参考</h1><code>#include &lt;assert.h&gt;</code><br>
<code>#include &lt;time.h&gt;</code><br>
<code>#include &quot;<a class="el" href="WLogInterface_8h-source.html">WLogInterface.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="Common_8h-source.html">Common.h</a>&quot;</code><br>

<p>
<div class="dynheader">
WLogInterface.cpp包含/依赖关系图：</div>
<div class="dynsection">
<p><center><img src="WLogInterface_8cpp__incl.png" border="0" usemap="#WLogInterface.cpp_map" alt=""></center>
<map name="WLogInterface.cpp_map">
<area shape="rect" id="node7" href="WLogInterface_8h.html" title="WLogInterface.h" alt="" coords="297,83,412,111"><area shape="rect" id="node36" href="Common_8h.html" title="Common.h" alt="" coords="603,161,685,189"><area shape="rect" id="node9" href="OS_8h.html" title="OS.h" alt="" coords="477,161,528,189"><area shape="rect" id="node11" href="ILogProcess_8h.html" title="ILogProcess.h" alt="" coords="27,161,131,189"><area shape="rect" id="node13" href="WLDefine_8h.html" title="WLDefine.h" alt="" coords="93,238,181,266"><area shape="rect" id="node15" href="ILevel_8h.html" title="ILevel.h" alt="" coords="5,238,69,266"><area shape="rect" id="node19" href="Record_8h.html" title="Record.h" alt="" coords="183,315,255,343"><area shape="rect" id="node22" href="IOuter_8h.html" title="IOuter.h" alt="" coords="303,315,369,343"><area shape="rect" id="node26" href="RegularOuter_8h.html" title="RegularOuter.h" alt="" coords="307,238,413,266"><area shape="rect" id="node31" href="XmlOuter_8h.html" title="XmlOuter.h" alt="" coords="437,238,523,266"><area shape="rect" id="node40" href="BlockOuter_8h.html" title="BlockOuter.h" alt="" coords="307,161,403,189"></map>
</div>

<p>
<a href="WLogInterface_8cpp-source.html">浏览该文件的源代码。</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>名字空间</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html">WLog</a></td></tr>

<tr><td colspan="2"><br><h2>宏定义</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="WLogInterface_8cpp.html#dd2ffd6a404de46484834c18e80382e5">_TIME_MAX_BUF_SIZE</a>&nbsp;&nbsp;&nbsp;256</td></tr>

<tr><td colspan="2"><br><h2>函数</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">ILogProcess *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#4c90989d4645c6ecd9d9113c3dc64fcd">WLog::setLog</a> (ILogProcess *pLog)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log指针.  <a href="#4c90989d4645c6ecd9d9113c3dc64fcd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">ILogProcess *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#88d869c121c4e8992922002033ac06c6">WLog::getLog</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">获取log指针.  <a href="#88d869c121c4e8992922002033ac06c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">IOuter *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#251ca1d97c3062af94fc5471724dd6a1">WLog::setOuter</a> (IOuter *pOuter)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log的输出outer指针.  <a href="#251ca1d97c3062af94fc5471724dd6a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">ILogProcess *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#620aeb437d19cc9051eba3c2b1cfbc03">WLog::setOuterLog</a> (IOuter *pOuter, ILogProcess *pLog)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log与log的outer指针.  <a href="#620aeb437d19cc9051eba3c2b1cfbc03"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#121adb4c1a83fb9272cc01323d4da656">WLog::setOutLevel</a> (int iOutLevel=W_LEVEL_FLOOR)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置log的输出级别.  <a href="#121adb4c1a83fb9272cc01323d4da656"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#14984727b0b46ea36398e5ebac29ef56">WLog::setTrimFileName</a> (bool bTrim)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">设置输出日志中，是否只保留文件名，而不要路径.  <a href="#14984727b0b46ea36398e5ebac29ef56"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#157286d8013463871f20a6bfb039cac1">WLog::buildFileNameNow</a> (const char *szPrefix=&quot;&quot;, const char *szEnd=&quot;.log&quot;, const char *szFormatDateTime=&quot;%Y-%m-%d_%H%M%S&quot;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">以当前的时间创建文件名  <a href="#157286d8013463871f20a6bfb039cac1"></a><br></td></tr>
<tr><td colspan="2"><br><h2>变量</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">ILogProcess *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceWLog.html#13b8ff10caf2fabc88a615041f44d6fa">WLog::log</a> = 0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">全局变量 <a class="el" href="classWLog_1_1ILogProcess.html" title="Interface for process the logs.">ILogProcess</a> 指针,使得所有的log操作都使用一个实例  <a href="#13b8ff10caf2fabc88a615041f44d6fa"></a><br></td></tr>
</table>
<hr><h2>宏定义文档</h2>
<a class="anchor" name="dd2ffd6a404de46484834c18e80382e5"></a><!-- doxytag: member="WLogInterface.cpp::_TIME_MAX_BUF_SIZE" ref="dd2ffd6a404de46484834c18e80382e5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _TIME_MAX_BUF_SIZE&nbsp;&nbsp;&nbsp;256          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
</div>
<hr>
<address style="align: right;">
  Generated on Mon Apr 6 21:08:45 2009 for WLog by 韦体东<img src="logo.png" align="middle"/></address>
</body>
</html>
